<?php

/**
 * Application Model DbTables
 *
 * @package Application_Model
 * @subpackage DbTable
 * @author <YOUR NAME HERE>
 * @copyright ZF model generator
 * @license http://framework.zend.com/license/new-bsd     New BSD License
 */

/**
 * Table definition for sessionformation
 *
 * @package Application_Model
 * @subpackage DbTable
 * @author <YOUR NAME HERE>
 */
class Application_Model_MonDbTable_Sessionformation extends Application_Model_DbTable_Sessionformation
{
   public function getFormation(){
   	$selector=$this->select(Zend_Db_Table::SELECT_WITH_FROM_PART);
   	
   	$selector->setIntegrityCheck(false);
   	
   	$selector->joinLeft("formation", "id_for=formation_id_for");
   	$selector->joinLeft("participant", "cin=participant_cin");
   	$rec = $this->fetchAll($selector);
   	if($rec){
   		return $rec;
   	}else{
   		return false;
   	}
   	
   }


}
